package com.ctgu.server.dao.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName ResultEnum
 * @Description 封装状态返回码
 * @Author kvzjj
 * @Data 2022/12/16 16:35
 * @Version 1.0
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {
    SUCCESS("请求成功",200),
    FAIL("操作失败",400),
    UNAUTHORIZED("尚未登录,请登录!",401),
    NOT_FOUND("页面不存在",404),
    INTERNAL_SERVER_ERROR("服务器繁忙",500),
    PARAMETER_ERROR("参数错误",-1),
    LOGIN_FAILED("用户名或密码错误",1000),
    LOGIN_FAILED_NULL("用户名或者密码为空",1001),
    LOGIN_FAILED_EXITES("用户名重复",1002),
    LOGIN_FAILED_NOT_EXITES("用户不存在",1003),

    REGISTER_FAILED_EXIT("用户名重复",1010),

    PERMISSION_DENIED("权限不足",403);


    public String msg;
    public int code;
}
